<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
   <head>
      <title>媒体素材管理系统</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <!-- 引入 Bootstrap -->
      <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
      <link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet">
   </head>
   <body>
<header>
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand">媒体素材管理系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
              <li <c:if test="${active==1}" >class="active"</c:if>><a href="${pageContext.request.contextPath}/index.action">首页</a></li>
             <li <c:if test="${active==2}" >class="active"</c:if>><a href="${pageContext.request.contextPath}/photolist.action">图片</a></li>
             <li <c:if test="${active==3}" >class="active"</c:if>><a href="${pageContext.request.contextPath}/videolist.action">视频</a></li>
            <li <c:if test="${active==4}" >class="active"</c:if>><a href="${pageContext.request.contextPath}/typelist.action">分类</a></li>
            <li <c:if test="${active==5}" >class="active"</c:if>><a href="${pageContext.request.contextPath}/statistic.action">统计</a></li>
          </ul>


                <div class="navbar-form navbar-right">
                    <c:if test="${USER_SESSION.username!=null}">
                    <div id='cssmenu'>
                        <ul>
                            <li class='active has-sub'><a href='#'><span class="glyphicon glyphicon-off"></span> 用户设置</a>
                                <ul>
                                    <li class='has-sub'><a href='${pageContext.request.contextPath}/manage/mediamanage.action?url=mediamanage'>跳转管理页面</a></li>
                                    <li class='has-sub'><a href='${pageContext.request.contextPath}/manage/logout.action'>注销用户</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                    </c:if>
                    <c:if test="${USER_SESSION.username==null}">
                        <div class="not-login">
                            <a href="${pageContext.request.contextPath}/manage/loginview.action">未登录！跳转登录页面</a>
                        </div>
                    </c:if>
                </div>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>   
</header>
<br/><br/><br/>



